package com.sx.pipeline.repos.http.req

/**
 *    author : zhouyouqiang
 *    e-mail : 1638473898@qq.com
 *    date   : 2022/5/24 15:19
 *    desc   :
 *    version: 1.0
 */
data class ReleaseNeedsAddDTO(
    val id: Int? = 0,
    val needDownType: Int, //子需求类型返回的实体类0:Equipment、1:Unit、2:Serve
    val title: String, //标题
    val name: String,
    val description: String, //描述
    val needType: String, //需求类型
    val provinceId: Int, //省id
    val cityId: Int, //市id
    val areaId: Int, //区id
    val longitude: String, //经度
    val latitude: String, //纬度
    val addressDetail: String, //地址
    val address:String, //详细地址
    val omsNeedEquipment: OmsNeedEquipment?,//设备需求信息
    val omsNeedUnit: OmsNeedUnit?,
    val omsNeedServe: OmsNeedServeDTO?,
    val contact: String,
    val contactPhone: String,
    val payPassword:String=""
)

data class OmsNeedEquipment(
    val name: String, //设备名称
    val equipmentNo: String, //设备编号
    val numberPlate: String, //车牌号
    val findBy: Int, //查找方式0:系统内部查找1:发布需求信息
    val equipmentImage: String, //设备图片
)

data class OmsNeedUnit(
    val quantity: String, //工作量
    val unit: String, //计量单位
    val startDate: String, //开始时间
    val endDate: String, //结束时间
    val pushRange: Int, //推送范围0:省1:市2:区
    val siteImage: String, //现场照片
    val constructionImage: String,//施工图纸
)

data class OmsNeedServeDTO(
    val id: Int,
    val quantity: String, //需求量
    val unit: String, //计量单位
    val startDate: String, //开始时间
    val endDate: String, //结束时间
    val nature: String, //任务性质
    val paymentMethod: String, //结算方式
    val appendixUrl: String, //附件
    val paymentAmount:String=""

)

data class OrderQuotedPrice(
    val price: String, //单价
    val totalPrice: String, //总价
    val startTime: String,
    val endEnd: String
)